package com.bjgzy.courselive.di.component;

import dagger.BindsInstance;
import dagger.Component;

import com.jess.arms.di.component.AppComponent;

import com.bjgzy.courselive.di.module.MyCourseModule;
import com.bjgzy.courselive.mvp.contract.MyCourseContract;
import com.jess.arms.di.scope.ActivityScope;
import com.bjgzy.courselive.mvp.ui.activity.MyCourseActivity;

/**
 * @author xubo
 * @date 2018-8-1 14:57:37
 */
@ActivityScope
@Component(modules = MyCourseModule.class, dependencies = AppComponent.class)
public interface MyCourseComponent {
    void inject(MyCourseActivity activity);

    @Component.Builder
    interface Builder {
        @BindsInstance
        MyCourseComponent.Builder view(MyCourseContract.View view);

        MyCourseComponent.Builder appComponent(AppComponent appComponent);

        MyCourseComponent build();
    }


}